package com.jdrx.sw.sewage.beans.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel(value = "MaintenanceDevVO", description = "最近待保养设备列表")
public class MaintenanceDevVO {

    @ApiModelProperty(value = "主键id")
    private Long id;

    @ApiModelProperty(value = "领用设备id")
    private Long devId;

    @ApiModelProperty(value = "类型（1 - 保养 2 -维修）")
    private Integer type;

    @ApiModelProperty(value = "库类型（3-使用 2-库存 1-报废）")
    private Integer devType;

    @ApiModelProperty(value = "设备名称")
    private String deviceName;

    @ApiModelProperty(value = "物料名称")
    private String materielName;

    @ApiModelProperty(value = "设备照片")
    private String attach;

    @ApiModelProperty(value = "设备品类")
    private String categoryName;

    @ApiModelProperty(value = "设备规格")
    private String dossierSpec;

    @ApiModelProperty(value = "厂区")
    private String factoryPeriod;

    @ApiModelProperty(value = "维保周期天")
    private Integer maintenanceCycleDay;

    @ApiModelProperty(value = "维保周期小时")
    private Integer maintenanceCycleHour;

    @ApiModelProperty(value = "周期时间")
    private Integer cycleTime;

    @ApiModelProperty(value = "工作时间")
    private Integer workTime;

    @ApiModelProperty(value = "维保人")
    private String maintenanceBy;

    @ApiModelProperty(value = "维保人id")
    private Long maintenanceById;

    @ApiModelProperty(value = "派单人")
    private String singlePerson;

    @ApiModelProperty(value = "派单人id")
    private Long singlePersonId;

    @ApiModelProperty(value = "预计费用")
    private Double estimatedCost;

    @ApiModelProperty(value = "维保意见/维修意见")
    private String opinion;

    @ApiModelProperty(value = "故障描述(维修才有？)")
    private String faultDesc;

    @ApiModelProperty(value = "工艺单元名称")
    private String processunitName;

    @ApiModelProperty(value = "厂家名")
    private String factoryName;

    @ApiModelProperty(value = "维保时间", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date maintenanceTime;

    @ApiModelProperty(value = "派单时间", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createAt;

    @ApiModelProperty(value = "是否派过单(0 - 否 1 - 是)")
    private Integer noDispatch;

    @ApiModelProperty(value = "权限级别：0管理员、1技术员")
    private Integer roleLevel;

    @ApiModelProperty(value = "设备编号")
    private String deviceNum;

    @ApiModelProperty(value = "设备SN号")
    private String snNum;

    @ApiModelProperty(value = "是否有未完成的工单(0 - 否 1 - 是)")
    private Integer noWorkOrder;
}